package com.xu.t1.model;

import java.math.BigDecimal;
import java.util.Date;

public class LearningRecord {
    private Long id;              // 学习记录ID，自增主键
    private Long userId;          // 关联用户ID
    private Date studyDate;       // 学习日期
    private Integer studyTime;    // 学习时间（分钟）
    private Integer progress;  // 学习进度（百分比）
    private String content;       // 学习内容简述
    private Date createdAt;       // 录入时间

    public LearningRecord() {}

    // Getter 和 Setter
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getStudyDate() {
        return studyDate;
    }

    public void setStudyDate(Date studyDate) {
        this.studyDate = studyDate;
    }

    public Integer getStudyTime() {
        return studyTime;
    }

    public void setStudyTime(Integer studyTime) {
        this.studyTime = studyTime;
    }

    public Integer getProgress() {
        return progress;
    }

    public void setProgress(Integer progress) {
        this.progress = progress;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
}